package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.dao.ReportOrderSourceDayMapper;
import com.yungu.swift.report.entity.ReportOrderSourceDay;
import com.yungu.swift.report.service.OrderSourceDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : cuixiuyin
 * @date : 2019/11/13
 */
@Service
public class OrderSourceDayServiceImpl implements OrderSourceDayService {

    @Autowired
    private ReportOrderSourceDayMapper reportOrderSourceDayMapper;

    @Override
    public ResponseData<List<ReportOrderSourceDay>> queryIndex(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(reportOrderSourceDayMapper.queryIndex(reportParam));
    }
}
